package com.anivia.system.auth.controller;

import com.anivia.common.core.enums.DesensitizedTypeEnum;
import com.anivia.common.core.model.vo.R;
import com.anivia.system.auth.service.ICommonService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

/**
 * <p>
 * 权限 前端控制器
 * </p>
 *
 * @author wangj
 */
@Tag(name = "公共接口")
@RestController
@RequestMapping("/common")
public class ComnmonController {
    @Resource
    private ICommonService commonService;

    @Operation(summary = "脱敏字段集合")
    @GetMapping("desensitizationList")
    private R<List<DesensitizedTypeEnum>> desensitizationList() {
        List<DesensitizedTypeEnum> list
                = Arrays.asList(DesensitizedTypeEnum.PHONE, DesensitizedTypeEnum.FIXED_PHONE, DesensitizedTypeEnum.ID_CARD);
        return R.ok(list);
    }
}
